import Vue from "vue";
import VueLazyload from "vue-lazyload";
import App from "./App.vue";

import router from "./router";
import store from "./store";

import "./styles/reset.less";
import "./styles/iconfont.css";
import "./plugins/element.js";

import "./test";

// 安装插件
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: "/images/error.jpg",
  loading: "/images/loading.jpeg",
  attempt: 1,
});

Vue.config.productionTip = false;

import * as api from "./api";
Vue.prototype.$api = api;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
